#!/usr/bin/python
p_pass = input("please inout a passwd:")
p_l = 0
p_d = 0
p_u = 0
p_t = 0
p = list(p_pass)
if len(p) >= 8:
    for i in p:
        if i.islower():
            if p_l == 0:
                p_l = 1
        elif i.isdigit():
            if p_d == 0:
                p_d = 1
        elif i.isupper():
            if p_u == 0:
                p_u = 1
        else:
            if p_t == 0:
                p_t = 1

    if p_l == p_d == p_u == p_t == 1:
        print("pass")
else:
    print("密码长度不足8位", p_pass)

if p_l == 0:
    print("没有小写字母")
elif p_u == 0:
    print("没有大写字母")
elif p_d == 0:
    print("没有数字")
elif p_t == 0:
    print("没有特殊字符")
